// Decompiled on 周六 2月 22 19:31:49 CST 2025 with Zomboid Decompiler v0.1.3 using Vineflower.
package zombie;

import zombie.core.opengl.Shader;
import zombie.util.Pool;
import zombie.util.PooledObject;

public final class ShaderStackEntry extends PooledObject {
    private Shader m_shader;
    private int m_playerIndex;
    private static final Pool<zombie.ShaderStackEntry> s_pool = new Pool<>(zombie.ShaderStackEntry::new);

    public Shader getShader() {
        return this.m_shader;
    }

    public int getPlayerIndex() {
        return this.m_playerIndex;
    }

    public static zombie.ShaderStackEntry alloc(Shader shader, int playerIndex) {
        zombie.ShaderStackEntry shaderStackEntry = s_pool.alloc();
        shaderStackEntry.m_shader = shader;
        shaderStackEntry.m_playerIndex = playerIndex;
        return shaderStackEntry;
    }
}
